//
//  WarterLayout.h
//  Meng
//
//  Created by 卢佳威 on 15/9/24.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import <UIKit/UIKit.h>

@class WarterLayout;

@protocol WarterLayoutDelegate <NSObject>

-(CGFloat)waterLayout:(WarterLayout *)waterLayout heightForWidth:(CGFloat)width atIndexPath:(NSIndexPath *)indexPath;

@end

@interface WarterLayout : UICollectionViewLayout

/**
 *  屏幕边缘间距
 */
@property(nonatomic,assign) UIEdgeInsets edgeInsets;
/**
 *  每一列的间距
 */
@property(nonatomic,assign) CGFloat colMargin;
/**
 *  每一行的间距
 */
@property(nonatomic,assign)CGFloat rowMargin;
/**
 *  有多少列
 */
@property(nonatomic,assign)NSInteger colCount;

@property(nonatomic,assign)id<WarterLayoutDelegate> delegate;

@end
